package com.heima.admin.service;


import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yht
 * @date 2022/1/13 14:49
 */
public interface AdNewsService {
    /**
     * 查询自动审核失败的文章
     * @return
     */
    public PageResponseResult findAutoAuditLose(NewsAuthDto newsAuthDto);

    /**
     * 根据id查询审核文章
     * @param id
     * @return
     */
    public ResponseResult findNewById(@PathVariable("id") Integer id);

    /**
     * 文章审核驳回
     * @param newsAuthDto
     * @return
     */
    public ResponseResult authFail(NewsAuthDto newsAuthDto);

    /**
     * 审核成功
     * @param newsAuthDto
     * @return
     */
    public ResponseResult authPass(NewsAuthDto newsAuthDto);
}
